package action;

import com.opensymphony.xwork2.ActionSupport;

import domain.dto.UserForm;
import service.UserManageService;

public class registerAction extends ActionSupport  {
	private static final long serialVersionUID = 1L;  
	  
    private UserForm user;  
  
    public UserForm getUser() {  
        return user;  
    }  
  
    public void setUser(UserForm user) {  
        this.user = user;  
    }  
    public String login() {
		return null;
	}
    public String execute() {  
        try {  
        	UserManageService.regUser(user);  
            return SUCCESS;  
  
        } catch (Exception e) {  
            e.printStackTrace();  
            return ERROR;  
        }  
    }  
}
